home *** CD-ROM | disk | FTP | other *** search
- property sp, pos, hitRect, boxOffset
-
- on new me, asp, aPos
- me.sp = asp
- puppetSprite(me.sp, 1)
- boxOffset = point(the width of sprite me.sp / 2, the height of sprite me.sp / 2)
- me.pos = aPos - boxOffset
- DrawtoStage(me)
- me.hitRect = the rect of sprite me.sp
- return me
- end
-
- on UpdatePos me, aPos
- tempPos = me.pos + aPos
- me.pos = tempPos
- end
-
- on DrawtoStage me
- set the loc of sprite the sp of me to me.pos
- me.hitRect = the rect of sprite me.sp
- end
-